﻿using Entity;
using System.Threading.Tasks;

namespace XingWeiDaWMSProject.IService
{
    public interface ISysOrgUserManagementService
    {
        Task<SysOrgUserManagement> GetUserByAccountAsync(string userAccount);
        string GetCurrentUserAccount();
        Task<bool> UpdateUserAsync(SysOrgUserManagement user);
        Task<bool> VerifyPasswordAsync(string userAccount, string password);
        Task<string> ChangePasswordAsync(string userAccount, string oldPassword, string newPassword);
        Task<int> GetCurrentUserOrganizationIdAsync(); // 新增：获取当前用户的组织ID
        //新增重载方法：接收Controller层传递的用户账号
        Task<int> GetCurrentUserOrganizationIdAsync(string userAccount);
        // 补充：获取所有经办人（控制器调用的GetAllOperatorsAsync）
        Task<List<SysOrgUserManagement>> GetAllOperatorsAsync();
       
    }
}